/*
 * Project:     My Project Work, Copyright (C) 2011
 * Created at:  21.08.2011
 */
package de.myprojectwork.common.util;

import de.myprojectwork.model.dto.Todo;
import java.util.Comparator;

/**
 * @author Chris Holdschuh
 */
public class TodoOrderNumberSorter implements Comparator<Todo> {

    @Override
    public int compare(Todo o1, Todo o2) {
        return new Integer(o1.getOrderNumber()).compareTo(o2.getOrderNumber());
    }
}
